package com.sts.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
/**
 * 通知实体类
 * 用于管理系统向用户发送的各种通知消息
 */
@Data
@Builder
@TableName("notification")
public class Notification {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("receiver_id")
    private Long receiverId;

    private String type;

    private String title;

    private String content;

    @TableField("is_read")
    private Boolean isRead;

    private String extra;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
